/******************************************************************************************
 * Import
 ******************************************************************************************/

// module
import Taro, { Component } from '@tarojs/taro'
import { Swiper } from '@tarojs/components'

// project
import { CPage, CContent, CHeader, CFooter, CFloat, CAround, CBetween, CCenter, CRow, CWrap, CLine, CHand, CItemX, CItemY, CText, CLabel, CSvg, CImage, CButton, CColumn } from '../../../library/comp';
import { Base64, Gen, Time, Zip, Session, Storage, Toast} from '../../../library/func';
import Http from '../../../project/func/http/http'
import "../../../library/style/patch.css"


// 引用组件

/******************************************************************************************
 * Export Class
 ******************************************************************************************/

export default class CHead extends Component {

	constructor(props) {
		super(props);

    

    }
    
    /*------------------------------------------------------------------------------------
	 * 自定义方法
	 *-----------------------------------------------------------------------------------*/

	/**
	 * 渲染
	 */
	render() {
        const title = this.props.title?this.props.title:"";
        const bt = this.props.bt ? this.props.bt:"";
		// 渲染
		return (

            <CHeader x='center' bt={ bt }>
                <CBetween bg="white">
                    <CHand class="f03" h="45" y="center">
                        <CText></CText>
                    </CHand>
                    <CHand class="f03" y="center" h="45" x="center">
                        <text style="font-size:32rpx;">{ title }</text>
                    </CHand>
                    <CHand class="f03" h="45" y="center" x="right">
                        <CHand style="margin-right:20rpx" px="20" py="5" bg="#D8C46E" ra="5" onClick={ this.props.onDosome }>
                            <text style="font-size:28rpx; color:#fff" size="14"  color="#fff">
                            操作
                            </text>
                        </CHand>
                    </CHand>
                </CBetween>

            </CHeader>



		);
	}
};